package lsy.tools;

import jakarta.servlet.http.HttpServletRequest;

public class PathUtils {

    public static String getBasePath(HttpServletRequest request) {
        String path = request.getContextPath();
        String basePath = request.getScheme() +"://" + request.getServerName() +":"+request.getServerPort()+path+"/";
        return basePath;
    }

}
